from abc import abstractmethod, ABC


class Bank:

    @abstractmethod
    def transferAccounts(self, money):
        pass


# 今日银行
class OtherBack(Bank, ABC):

    def transferAccounts(self, money):
        # singleStroke 按笔收取
        # rate 每笔的%rate 收取
        # 计算手续费用

        if money < 2000:
            return 1.6
        elif money < 5000:
            return 4
        elif money < 10000:
            return 8
        elif money < 50000:
            return 12
        else:
            ans = money * 0.0003
            return 50 if ans > 50 else ans


if __name__ == '__main__':
    a = OtherBack()
    print('手续费用为：',a.transferAccounts(50000))


